import com.genexus.*;
import com.genexus.ui.*;

public final class subtproforma29 extends GXSubfileElement
{
   private short PrfCodLin ;
   private String PrsCod ;
   private String EmpCod ;
   private short MVehCod ;
   private long SerCod ;
   private double PrfPreSer ;
   private short TIPDOCCOD ;
   private String PrfNroDCho ;
   private String PrfDirLin ;
   private String PrfDirUbi ;
   private String PrfTlfFij ;
   private String PrfTlfMov ;
   private String PrfTlfEma ;
   private int PrfTimEst ;
   private String ZPrsCod ;
   private String ZEmpCod ;
   private short ZMVehCod ;
   private long ZSerCod ;
   private double ZPrfPreSer ;
   private String ZPrfNroDCho ;
   private String ZPrfDirLin ;
   private String ZPrfDirUbi ;
   private String ZPrfTlfFij ;
   private String ZPrfTlfMov ;
   private String ZPrfTlfEma ;
   private int ZPrfTimEst ;
   public short getPrfCodLin( )
   {
      return PrfCodLin ;
   }

   public void setPrfCodLin( short value )
   {
      PrfCodLin = value;
   }

   public String getPrsCod( )
   {
      return PrsCod ;
   }

   public void setPrsCod( String value )
   {
      PrsCod = value;
   }

   public String getEmpCod( )
   {
      return EmpCod ;
   }

   public void setEmpCod( String value )
   {
      EmpCod = value;
   }

   public short getMVehCod( )
   {
      return MVehCod ;
   }

   public void setMVehCod( short value )
   {
      MVehCod = value;
   }

   public long getSerCod( )
   {
      return SerCod ;
   }

   public void setSerCod( long value )
   {
      SerCod = value;
   }

   public double getPrfPreSer( )
   {
      return PrfPreSer ;
   }

   public void setPrfPreSer( double value )
   {
      PrfPreSer = value;
   }

   public short getTIPDOCCOD( )
   {
      return TIPDOCCOD ;
   }

   public void setTIPDOCCOD( short value )
   {
      TIPDOCCOD = value;
   }

   public String getPrfNroDCho( )
   {
      return PrfNroDCho ;
   }

   public void setPrfNroDCho( String value )
   {
      PrfNroDCho = value;
   }

   public String getPrfDirLin( )
   {
      return PrfDirLin ;
   }

   public void setPrfDirLin( String value )
   {
      PrfDirLin = value;
   }

   public String getPrfDirUbi( )
   {
      return PrfDirUbi ;
   }

   public void setPrfDirUbi( String value )
   {
      PrfDirUbi = value;
   }

   public String getPrfTlfFij( )
   {
      return PrfTlfFij ;
   }

   public void setPrfTlfFij( String value )
   {
      PrfTlfFij = value;
   }

   public String getPrfTlfMov( )
   {
      return PrfTlfMov ;
   }

   public void setPrfTlfMov( String value )
   {
      PrfTlfMov = value;
   }

   public String getPrfTlfEma( )
   {
      return PrfTlfEma ;
   }

   public void setPrfTlfEma( String value )
   {
      PrfTlfEma = value;
   }

   public int getPrfTimEst( )
   {
      return PrfTimEst ;
   }

   public void setPrfTimEst( int value )
   {
      PrfTimEst = value;
   }

   public String getZPrsCod( )
   {
      return ZPrsCod ;
   }

   public void setZPrsCod( String value )
   {
      ZPrsCod = value;
   }

   public String getZEmpCod( )
   {
      return ZEmpCod ;
   }

   public void setZEmpCod( String value )
   {
      ZEmpCod = value;
   }

   public short getZMVehCod( )
   {
      return ZMVehCod ;
   }

   public void setZMVehCod( short value )
   {
      ZMVehCod = value;
   }

   public long getZSerCod( )
   {
      return ZSerCod ;
   }

   public void setZSerCod( long value )
   {
      ZSerCod = value;
   }

   public double getZPrfPreSer( )
   {
      return ZPrfPreSer ;
   }

   public void setZPrfPreSer( double value )
   {
      ZPrfPreSer = value;
   }

   public String getZPrfNroDCho( )
   {
      return ZPrfNroDCho ;
   }

   public void setZPrfNroDCho( String value )
   {
      ZPrfNroDCho = value;
   }

   public String getZPrfDirLin( )
   {
      return ZPrfDirLin ;
   }

   public void setZPrfDirLin( String value )
   {
      ZPrfDirLin = value;
   }

   public String getZPrfDirUbi( )
   {
      return ZPrfDirUbi ;
   }

   public void setZPrfDirUbi( String value )
   {
      ZPrfDirUbi = value;
   }

   public String getZPrfTlfFij( )
   {
      return ZPrfTlfFij ;
   }

   public void setZPrfTlfFij( String value )
   {
      ZPrfTlfFij = value;
   }

   public String getZPrfTlfMov( )
   {
      return ZPrfTlfMov ;
   }

   public void setZPrfTlfMov( String value )
   {
      ZPrfTlfMov = value;
   }

   public String getZPrfTlfEma( )
   {
      return ZPrfTlfEma ;
   }

   public void setZPrfTlfEma( String value )
   {
      ZPrfTlfEma = value;
   }

   public int getZPrfTimEst( )
   {
      return ZPrfTimEst ;
   }

   public void setZPrfTimEst( int value )
   {
      ZPrfTimEst = value;
   }

   public void clear( )
   {
      PrfCodLin = 0 ;
      PrsCod = "" ;
      EmpCod = "" ;
      MVehCod = 0 ;
      SerCod = 0 ;
      PrfPreSer = 0 ;
      TIPDOCCOD = 0 ;
      PrfNroDCho = "" ;
      PrfDirLin = "" ;
      PrfDirUbi = "" ;
      PrfTlfFij = "" ;
      PrfTlfMov = "" ;
      PrfTlfEma = "" ;
      PrfTimEst = 0 ;
      ZPrsCod = "" ;
      ZEmpCod = "" ;
      ZMVehCod = 0 ;
      ZSerCod = 0 ;
      ZPrfPreSer = 0 ;
      ZPrfNroDCho = "" ;
      ZPrfDirLin = "" ;
      ZPrfDirUbi = "" ;
      ZPrfTlfFij = "" ;
      ZPrfTlfMov = "" ;
      ZPrfTlfEma = "" ;
      ZPrfTimEst = 0 ;
   }

   public int compareTo( GXSubfileElement element ,
                         int column )
   {
      switch (column)
      {
            case 0 :
               if ( PrfCodLin > ((subtproforma29) element).getPrfCodLin() ) return 1;
               if ( PrfCodLin < ((subtproforma29) element).getPrfCodLin() ) return -1;
               return 0;
            case 1 :
               return GXutil.strcmp( GXutil.upper( PrsCod ), GXutil.upper( ((subtproforma29) element).getPrsCod() ));
            case 2 :
               return GXutil.strcmp( GXutil.upper( EmpCod ), GXutil.upper( ((subtproforma29) element).getEmpCod() ));
            case 3 :
               if ( MVehCod > ((subtproforma29) element).getMVehCod() ) return 1;
               if ( MVehCod < ((subtproforma29) element).getMVehCod() ) return -1;
               return 0;
            case 4 :
               if ( SerCod > ((subtproforma29) element).getSerCod() ) return 1;
               if ( SerCod < ((subtproforma29) element).getSerCod() ) return -1;
               return 0;
            case 5 :
               if ( PrfPreSer > ((subtproforma29) element).getPrfPreSer() ) return 1;
               if ( PrfPreSer < ((subtproforma29) element).getPrfPreSer() ) return -1;
               return 0;
            case 6 :
               if ( TIPDOCCOD > ((subtproforma29) element).getTIPDOCCOD() ) return 1;
               if ( TIPDOCCOD < ((subtproforma29) element).getTIPDOCCOD() ) return -1;
               return 0;
            case 7 :
               return GXutil.strcmp( GXutil.upper( PrfNroDCho ), GXutil.upper( ((subtproforma29) element).getPrfNroDCho() ));
            case 8 :
               return GXutil.strcmp( GXutil.upper( PrfDirLin ), GXutil.upper( ((subtproforma29) element).getPrfDirLin() ));
            case 9 :
               return GXutil.strcmp( GXutil.upper( PrfDirUbi ), GXutil.upper( ((subtproforma29) element).getPrfDirUbi() ));
            case 10 :
               return GXutil.strcmp( GXutil.upper( PrfTlfFij ), GXutil.upper( ((subtproforma29) element).getPrfTlfFij() ));
            case 11 :
               return GXutil.strcmp( GXutil.upper( PrfTlfMov ), GXutil.upper( ((subtproforma29) element).getPrfTlfMov() ));
            case 12 :
               return GXutil.strcmp( GXutil.upper( PrfTlfEma ), GXutil.upper( ((subtproforma29) element).getPrfTlfEma() ));
            case 13 :
               if ( PrfTimEst > ((subtproforma29) element).getPrfTimEst() ) return 1;
               if ( PrfTimEst < ((subtproforma29) element).getPrfTimEst() ) return -1;
               return 0;
      }
      return 0;
   }

   public int isChanged( )
   {
      return (!userModified && (!inserted
      && ( GXutil.strcmp(ZPrsCod,PrsCod) == 0)
      && ( GXutil.strcmp(ZEmpCod,EmpCod) == 0)
      && (ZMVehCod == MVehCod)
      && (ZSerCod == SerCod)
      && (ZPrfPreSer == PrfPreSer)
      && ( GXutil.strcmp(ZPrfNroDCho,PrfNroDCho) == 0)
      && ( GXutil.strcmp(ZPrfDirLin,PrfDirLin) == 0)
      && ( GXutil.strcmp(ZPrfDirUbi,PrfDirUbi) == 0)
      && ( GXutil.strcmp(ZPrfTlfFij,PrfTlfFij) == 0)
      && ( GXutil.strcmp(ZPrfTlfMov,PrfTlfMov) == 0)
      && ( GXutil.strcmp(ZPrfTlfEma,PrfTlfEma) == 0)
      && (ZPrfTimEst == PrfTimEst)
      ))?0:1;
   }

   public boolean isEmpty( )
   {
      return ( ( PrfCodLin == 0 ) && ( GXutil.strcmp(PrsCod, "") == 0 ) && ( GXutil.strcmp(EmpCod, "") == 0 ) && ( MVehCod == 0 ) && ( SerCod == 0 ) && ( PrfPreSer == 0 ) && ( TIPDOCCOD == 0 ) && ( GXutil.strcmp(PrfNroDCho, "") == 0 ) && ( GXutil.strcmp(PrfDirLin, "") == 0 ) && ( GXutil.strcmp(PrfDirUbi, "") == 0 ) && ( GXutil.strcmp(PrfTlfFij, "") == 0 ) && ( GXutil.strcmp(PrfTlfMov, "") == 0 ) && ( GXutil.strcmp(PrfTlfEma, "") == 0 ) && ( PrfTimEst == 0 ) || insertedNotUserModified() )  ;
   }

   public void setColumn( GXComponent cell ,
                          int field )
   {
      switch (field) {
         case 0 :
            cell.setValue( PrfCodLin );
            break;
         case 1 :
            cell.setValue( PrsCod );
            break;
         case 2 :
            cell.setValue( EmpCod );
            break;
         case 3 :
            cell.setValue( MVehCod );
            break;
         case 4 :
            cell.setValue( SerCod );
            break;
         case 5 :
            cell.setValue( PrfPreSer );
            break;
         case 6 :
            cell.setValue( TIPDOCCOD );
            break;
         case 7 :
            cell.setValue( PrfNroDCho );
            break;
         case 8 :
            cell.setValue( PrfDirLin );
            break;
         case 9 :
            cell.setValue( PrfDirUbi );
            break;
         case 10 :
            cell.setValue( PrfTlfFij );
            break;
         case 11 :
            cell.setValue( PrfTlfMov );
            break;
         case 12 :
            cell.setValue( PrfTlfEma );
            break;
         case 13 :
            cell.setValue( PrfTimEst );
            break;
         case 14 :
            cell.setValue( ZPrsCod );
            break;
         case 15 :
            cell.setValue( ZEmpCod );
            break;
         case 16 :
            cell.setValue( ZMVehCod );
            break;
         case 17 :
            cell.setValue( ZSerCod );
            break;
         case 18 :
            cell.setValue( ZPrfPreSer );
            break;
         case 19 :
            cell.setValue( ZPrfNroDCho );
            break;
         case 20 :
            cell.setValue( ZPrfDirLin );
            break;
         case 21 :
            cell.setValue( ZPrfDirUbi );
            break;
         case 22 :
            cell.setValue( ZPrfTlfFij );
            break;
         case 23 :
            cell.setValue( ZPrfTlfMov );
            break;
         case 24 :
            cell.setValue( ZPrfTlfEma );
            break;
         case 25 :
            cell.setValue( ZPrfTimEst );
            break;
      }
   }

   public boolean isFieldChanged( GXComponent cell ,
                                  int field )
   {
      switch (field) {
         case 0 :
            return ( (((GUIObjectShort) cell).getValue() == PrfCodLin) );
         case 1 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrsCod) == 0) );
         case 2 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),EmpCod) == 0) );
         case 3 :
            return ( (((GUIObjectShort) cell).getValue() == MVehCod) );
         case 4 :
            return ( (((GUIObjectLong) cell).getValue() == SerCod) );
         case 5 :
            return ( (((GUIObjectDouble) cell).getValue() == PrfPreSer) );
         case 6 :
            return ( (((GUIObjectShort) cell).getValue() == TIPDOCCOD) );
         case 7 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrfNroDCho) == 0) );
         case 8 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrfDirLin) == 0) );
         case 9 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrfDirUbi) == 0) );
         case 10 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrfTlfFij) == 0) );
         case 11 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrfTlfMov) == 0) );
         case 12 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),PrfTlfEma) == 0) );
         case 13 :
            return ( (((GUIObjectInt) cell).getValue() == PrfTimEst) );
         case 14 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),ZPrsCod) == 0) );
         case 15 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),ZEmpCod) == 0) );
         case 16 :
            return ( (((GUIObjectShort) cell).getValue() == ZMVehCod) );
         case 17 :
            return ( (((GUIObjectLong) cell).getValue() == ZSerCod) );
         case 18 :
            return ( (((GUIObjectDouble) cell).getValue() == ZPrfPreSer) );
         case 19 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),ZPrfNroDCho) == 0) );
         case 20 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),ZPrfDirLin) == 0) );
         case 21 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),ZPrfDirUbi) == 0) );
         case 22 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),ZPrfTlfFij) == 0) );
         case 23 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),ZPrfTlfMov) == 0) );
         case 24 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),ZPrfTlfEma) == 0) );
         case 25 :
            return ( (((GUIObjectInt) cell).getValue() == ZPrfTimEst) );
      }
      return false;
   }

   public void setField( int i ,
                         GXComponent value )
   {
      switch (i)
      {
            case 0 :
               PrfCodLin = value.getShortValue() ;
               break;
            case 1 :
               PrsCod = value.getStringValue() ;
               break;
            case 2 :
               EmpCod = value.getStringValue() ;
               break;
            case 3 :
               MVehCod = value.getShortValue() ;
               break;
            case 4 :
               SerCod = value.getLongValue() ;
               break;
            case 5 :
               PrfPreSer = value.getDoubleValue() ;
               break;
            case 6 :
               TIPDOCCOD = value.getShortValue() ;
               break;
            case 7 :
               PrfNroDCho = value.getStringValue() ;
               break;
            case 8 :
               PrfDirLin = value.getStringValue() ;
               break;
            case 9 :
               PrfDirUbi = value.getStringValue() ;
               break;
            case 10 :
               PrfTlfFij = value.getStringValue() ;
               break;
            case 11 :
               PrfTlfMov = value.getStringValue() ;
               break;
            case 12 :
               PrfTlfEma = value.getStringValue() ;
               break;
            case 13 :
               PrfTimEst = value.getIntValue() ;
               break;
            case 14 :
               ZPrsCod = value.getStringValue() ;
               break;
            case 15 :
               ZEmpCod = value.getStringValue() ;
               break;
            case 16 :
               ZMVehCod = value.getShortValue() ;
               break;
            case 17 :
               ZSerCod = value.getLongValue() ;
               break;
            case 18 :
               ZPrfPreSer = value.getDoubleValue() ;
               break;
            case 19 :
               ZPrfNroDCho = value.getStringValue() ;
               break;
            case 20 :
               ZPrfDirLin = value.getStringValue() ;
               break;
            case 21 :
               ZPrfDirUbi = value.getStringValue() ;
               break;
            case 22 :
               ZPrfTlfFij = value.getStringValue() ;
               break;
            case 23 :
               ZPrfTlfMov = value.getStringValue() ;
               break;
            case 24 :
               ZPrfTlfEma = value.getStringValue() ;
               break;
            case 25 :
               ZPrfTimEst = value.getIntValue() ;
               break;
      }
   }

   public void setField( int i ,
                         GXSubfileElement element )
   {
      switch (i)
      {
            case 0 :
               PrfCodLin = ((subtproforma29) element).PrfCodLin;
               return;
            case 1 :
               PrsCod = ((subtproforma29) element).PrsCod;
               return;
            case 2 :
               EmpCod = ((subtproforma29) element).EmpCod;
               return;
            case 3 :
               MVehCod = ((subtproforma29) element).MVehCod;
               return;
            case 4 :
               SerCod = ((subtproforma29) element).SerCod;
               return;
            case 5 :
               PrfPreSer = ((subtproforma29) element).PrfPreSer;
               return;
            case 6 :
               TIPDOCCOD = ((subtproforma29) element).TIPDOCCOD;
               return;
            case 7 :
               PrfNroDCho = ((subtproforma29) element).PrfNroDCho;
               return;
            case 8 :
               PrfDirLin = ((subtproforma29) element).PrfDirLin;
               return;
            case 9 :
               PrfDirUbi = ((subtproforma29) element).PrfDirUbi;
               return;
            case 10 :
               PrfTlfFij = ((subtproforma29) element).PrfTlfFij;
               return;
            case 11 :
               PrfTlfMov = ((subtproforma29) element).PrfTlfMov;
               return;
            case 12 :
               PrfTlfEma = ((subtproforma29) element).PrfTlfEma;
               return;
            case 13 :
               PrfTimEst = ((subtproforma29) element).PrfTimEst;
               return;
            case 14 :
               ZPrsCod = ((subtproforma29) element).ZPrsCod;
               return;
            case 15 :
               ZEmpCod = ((subtproforma29) element).ZEmpCod;
               return;
            case 16 :
               ZMVehCod = ((subtproforma29) element).ZMVehCod;
               return;
            case 17 :
               ZSerCod = ((subtproforma29) element).ZSerCod;
               return;
            case 18 :
               ZPrfPreSer = ((subtproforma29) element).ZPrfPreSer;
               return;
            case 19 :
               ZPrfNroDCho = ((subtproforma29) element).ZPrfNroDCho;
               return;
            case 20 :
               ZPrfDirLin = ((subtproforma29) element).ZPrfDirLin;
               return;
            case 21 :
               ZPrfDirUbi = ((subtproforma29) element).ZPrfDirUbi;
               return;
            case 22 :
               ZPrfTlfFij = ((subtproforma29) element).ZPrfTlfFij;
               return;
            case 23 :
               ZPrfTlfMov = ((subtproforma29) element).ZPrfTlfMov;
               return;
            case 24 :
               ZPrfTlfEma = ((subtproforma29) element).ZPrfTlfEma;
               return;
            case 25 :
               ZPrfTimEst = ((subtproforma29) element).ZPrfTimEst;
               return;
      }
   }

}

